<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IFWiki.Models.GamePlace>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Source of Revision: '<%= Html.Encode(Model.Name) %>'</title>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="menu" runat="server">
            <div id="menucontainer">
                <ul id="menu">              
                    <li><%= Html.ActionLink("Main", "Index", "Article", new { name = Model.Name }, null)%></li>
                   
                    <li><%= Html.ActionLink("History", "ListRevisions", "Article", new { name = Model.Name }, null)%></li>

                    <li><%= Html.ActionLink("Talk", "Talk", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
                </ul>
            
            </div>
        </div>
  </asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Revision: <%= Html.Encode(Model.PlaceName) %> (from the game '<%= Html.Encode(Model.GameName) %>')</h2>

    <p>Revised at <%= Html.Encode(Model.RevisedAt.ToString("g")) %> by <%= Html.Encode(Model.RevisedBy) %></p
    <p>Reason for revision: '<%= Html.Encode(Model.Reason) %>'</p

        <p>
            InitPlaceJS: 
            <%= Html.Encode(Model.InitPlaceJS) %>
        </p>
        <p>
            DescriptionMarkdown: 
            <%= Html.Encode(Model.DescriptionMarkdown) %>
        </p>
        <p>
            PlaceItemsJson: 
            <%= Html.Encode(Model.PlaceItemsJson) %>
        </p>
        <p>
            PlaceStyle: 
            <%= Html.Encode(Model.PlaceStyle) %>
        </p>
    
<%
    if (Request.IsAuthenticated)
    {
%>
    <p>
        <%=Html.ActionLink("Revert", "Revert", new { name=Model.Name, revisedAt=Model.RevisedAt }) %> 
    </p>
<%
    }
    else
    {
%>  
    <p class="note"><%= Html.ActionLink("Login", "Login", "Account") %>  to allow  revert</p>
<%
    }
%>      
   
</asp:Content>

